package com.cjq.goods.controller;

import com.cjq.common.domain.Tag;
import com.cjq.common.result.Result;
import com.cjq.goods.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/tag")
public class TagController {
    @Autowired
    private TagService tagService;

    /**
     * 标签下拉框
     * @return
     */
    @GetMapping("/tagList")
    public Result<List<Tag>> tagList(){
        return tagService.tagList();
    }
}
